package cn.gok.common.dao.customer;

import cn.gok.common.entity.customer.CustomerBalanceLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 描述：
 *
 * @author shikundai
 * @date 2020/12/10
 * @time 17:34
 */
@Repository
@Mapper
public interface CustomerBalanceLogDao extends BaseMapper<CustomerBalanceLog> {
    /**
     * 描述：
     * @author shikundai
     * @date 2020/12/11
     * @time 10:32 获取一定范围的金额
     * @param time 传入时间格式“yyyy-mm-dd”
     * @return 返回记录集合
     */
    @Select("select * from c_balance_log where CREATE_TIME>=#{time}")
    public List<CustomerBalanceLog> gtCustomerBalanceLogs(String time);
}
